package com.copm.ifm.servers.sys.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 项目表
 *
 * @author zzf
 * @since 2020-12-14
 */
@Getter
@Setter
@ToString
@TableName("sys_project")
@ApiModel("项目表")
public class SysProject {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("租户id")
    private Long tenantId;

    @ApiModelProperty("项目代码")
    private String code;

    @ApiModelProperty("外部系统编号")
    private String outCode;

    @ApiModelProperty("业态，值来自数据字典")
    private Integer tradeType;

    @ApiModelProperty("名字")
    private String name;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("周界半径(米)")
    private Integer radius;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("启用状态 [0禁用 1启用]")
    private Integer enabled;

    @ApiModelProperty("正式启动日期")
    private Date startTime;

    @ApiModelProperty("接管日期")
    private Date handTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否删除 [0:未删除 1:已删除]")
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建人")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改人")
    private Long updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private Date updateTime;

}
